home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1865 / 1865.xpi / chrome / adblockplus.jar / content / ui / overlay.js < prev    next >
Text File  |  2010-01-07  |  1KB  |  37 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Adblock Plus.
  15.  *
  16.  * The Initial Developer of the Original Code is
  17.  * Wladimir Palant.
  18.  * Portions created by the Initial Developer are Copyright (C) 2006-2009
  19.  * the Initial Developer. All Rights Reserved.
  20.  *
  21.  * Contributor(s):
  22.  *
  23.  * ***** END LICENSE BLOCK ***** */
  24.  
  25. window.addEventListener("load", function()
  26. {
  27.     // Abuse sandboxes so get an execution context for our code
  28.     let sandbox = new Components.utils.Sandbox(window);
  29.     sandbox.window = window;
  30.     sandbox.document = document;
  31.  
  32.     let loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
  33.                                                  .getService(Components.interfaces.mozIJSSubScriptLoader)
  34.     loader.loadSubScript("chrome://adblockplus/content/ui/utils.js", sandbox);
  35.     loader.loadSubScript("chrome://adblockplus/content/ui/browserWindow.js", sandbox);
  36. }, false);
  37.